public class Node
{
	int frequency; // frequency of char
	char ch; // the character
	String digit; //solo puede ser 0 o 1
	
	// post: construct an entry with frequency f
	public Node(int f, char c, String di)
	{
		frequency = f;
		ch = c;
		digit = di;
	}
	public boolean equals(Object other)
	{
		Node that = (Node)other;
		return this.ch == that.ch;
	}
	public int getFrequency() {
		return frequency;
	}
	public void setFrequency(int frequency) {
		this.frequency = frequency;
	}
	public char getCh() {
		return ch;
	}
	public void setCh(char ch) {
		this.ch = ch;
	}
	public String getDigit() {
		return digit;
	}
	public void setDigit(String digit) {
		this.digit = digit;
	}
	

}